]> dgit.raspbian.org Git - gnome-shell.git/commit
inputMethod: Check return value when letting IM handle virtual keys
authorCarlos Garnacho <carlosg@gnome.org>
Tue, 11 Oct 2022 16:24:15 +0000 (18:24 +0200)
committerMarge Bot <marge-bot@gnome.org>
Tue, 18 Oct 2022 19:31:51 +0000 (19:31 +0000)
commit76090c14ebbda0c7c27870516db265c7f6fed5bd
treec338652de36e21b1c6ff8f2ccd3a92d5a008e5c1
parent766314acb2a3305fb692f3ef1e5948b1f60c5f00
inputMethod: Check return value when letting IM handle virtual keys

When propagating keys from the OSK, we usually feed these directly to
the IBusInputContext and let the IM handle the effects of this virtual
key event (which may also include feeding a key event back to us).

But these functions may also return a FALSE value if the key was "let
through" by the IM, which means the ball is in our yard again, and
we are responsible of letting this event get to its destination.

If that happens, just fall through, so the string is committed to
the client as an UTF-8 string, or propagated through keyboard events.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5930
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2508>
js/misc/inputMethod.js
js/ui/keyboard.js